<?php 
/* SVN FILE: $Id$ */
/* UserWebsite Test cases generated on: 2011-11-18 13:21:05 : 1321602665*/
App::import('Model', 'UserWebsite');

class UserWebsiteTestCase extends CakeTestCase {
	var $UserWebsite = null;
	var $fixtures = array('app.user_website');

	function startTest() {
		$this->UserWebsite =& ClassRegistry::init('UserWebsite');
	}

	function testUserWebsiteInstance() {
		$this->assertTrue(is_a($this->UserWebsite, 'UserWebsite'));
	}

	function testUserWebsiteFind() {
		$this->UserWebsite->recursive = -1;
		$results = $this->UserWebsite->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('UserWebsite' => array(
			'id'  => 1,
			'user_id'  => 1,
			'website_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>